﻿using lite;
using Csla;
using System.ComponentModel;
using System;

namespace ZX.DBModule
{
    [Serializable]
    [lite.Table]
    [Table("SysSequence", "SequenceID")]
    public class Sequence : BaseEntity
    {
        public Sequence()
        {
            //this.EditId = Int32.NewInt32();
        }

        [Column]
        public System.String SequenceName
        {
            get;
            set;
        }
        [lite.Column,lite.PK]
        public System.Guid SequenceID
        {
            get;
            set;
        }

        [Column]
        public Int64? StartNum
        {
            get;
            set;
        }

        [Column]
        public Int64? Step
        {
            get;
            set;
        }

        [Column]
        public Int64? MaxNum
        {
            get;
            set;
        }

        [Column]
        public Int64? CurNum
        {
            get;
            set;
        }

        [Column]
        public string Postposition
        {
            get;
            set;
        }

        [Column]
        public string Preposition
        {
            get;
            set;
        }

        [Column]
        public int NumLength
        {
            get;
            set;
        }

        [Column]
        public string Description
        {
            get;
            set;
        }
        public static Sequence CreateInstance()
        {
            return new Sequence();
        }
    
    }
}
